package cn.iocoder.yudao.module.nginxui.controller.admin.httpconfig.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - Nginx HTTP块主配置新增/修改 Request VO")
@Data
public class HttpConfigSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30668")
    private Long id;

    @Schema(description = "主配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26247")
    @NotNull(message = "主配置ID不能为空")
    private Long configId;

    @Schema(description = "是否启用sendfile机制")
    private Integer sendfile;

    @Schema(description = "长连接超时时间（秒）")
    private Integer keepaliveTimeout;

    @Schema(description = "客户端最大请求体大小")
    private String clientMaxBodySize;

    @Schema(description = "全局日志格式定义")
    private String logFormat;

    @Schema(description = "HTTP块额外自定义配置")
    private String extraHttpConfig;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

}